package com.tongcao.cn.service.impl;

import com.tongcao.cn.domain.model.APP;
import com.tongcao.cn.domain.model.APPExample;
import com.tongcao.cn.mapper.AppMapper;
import com.tongcao.cn.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:tongcao
 * @Date:2018/8/26 14:58
 * Description:
 */

@Service
public class AppInfoServiceImpl implements AppInfoService {

//    @Autowired
//    AppMapper appMapper;

    /**
     * 获取所有app
     *
     * @return
     */
    @Override
    public List<APP> getAllApp() {
        APPExample appExample = new APPExample();
        appExample.createCriteria().andAppidIsNotNull();
//        List<APP> apps = appMapper.selectByExample(appExample);
        return null;
    }

    /**
     * 分页查询
     *
     * @param num
     * @param pageSize
     * @return
     */
    @Override
    public List<APP> getAppList(int num, int pageSize) {
        return null;
    }

    /**
     * 新增app
     *
     * @param app
     * @return
     */
    @Override
    public Integer insertApp(APP app) {
        return null;
    }

    /**
     * 删除app
     *
     * @param app
     * @return
     */
    @Override
    public Integer deleteApp(APP app) {
        return null;
    }

    @Override
    public APP selectByPrimaryKey(long appId) {
//        APP app = appMapper.selectByPrimaryKey(appId);
        return null;
    }
}
